﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NetMonitor.NetApp
{
    public partial class ChangeBackImageForm : Form
    {
        public ChangeBackImageForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 显示的屏幕类型，宽屏还是普屏
        /// </summary>
        private string screenMode;

        public string ScreenMode
        {
            get { return screenMode; }
            set { screenMode = value; }
        }

        /// <summary>
        /// 显示的背景图像，卫星or地形or政区
        /// </summary>
        private string screenImage;

        public string ScreenImage
        {
            get { return screenImage; }
            set { screenImage = value; }
        }

        private void bt_Cancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void bt_Ok_Click(object sender, EventArgs e)
        {
            if (rb_NormalScreen.Checked)
            {
                screenMode = "normal";
            }
            else
            {
                screenMode = "wide";
            }

            if (rb_WX.Checked)
            {
                screenImage = "wx";
            }
            else if (rb_ZQ.Checked)
            {
                screenImage = "zq";
            }
            else if (rb_DX.Checked)
            {
                screenImage = "dx";
            }
        }
    }
}
